﻿using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using Abp.Runtime.Validation;
using MVlog.Core;
using System;
using System.Collections.Generic;
using System.Text;
using MVlog.Dto;

namespace MVlog.Application
{
    public class GetArticlesInput: PagedAndSortedInputDto, IShouldNormalize
    {
        ///// <summary>
        ///// 标题
        ///// </summary>
        //public string Title { get; set; }

        ///// <summary>
        ///// 标签
        ///// </summary>
        //public string TagIds { get; set; }

        ///// <summary>
        ///// 发布时间
        ///// </summary>
        //public DateTime? PublishedTime { get; set; }
        
        public void Normalize()
        {
            if (string.IsNullOrEmpty(Sorting))
            {
                Sorting = "Id ASC";
            }
        }
    }
}
